﻿




using System.Collections.Generic;
using Hotpot.Models;
using Hotpot.Modules.CMS.Models;
using Hotpot.Validation;

namespace Hotpot.Modules.CMS.Services
{
    public interface IPageService
    {
        Page GetPage(string slug);
        IEnumerable<Page> GetPages();
        ValidationStateDictionary ValidatePageInput(PageInput pageInput);
        ModelResult<Page> AddPage(PageInput pageInput);
        ModelResult<Page> EditPage(Page page, PageInput pageInput);
        void RemovePage(Page page);
        IEnumerable<ContentItem> GetContentItems(Page page);
        void AddPageContent(Page page, ContentItemInput contentItemInput);
        void EditPageContent(Page page, ContentItemsInput contentItemsInput);
    }
}
